/*
 * Project    : Tux-In-Cache
 *
 * Home       : http://code.google.com/p/tuxincache
 *
 * Subsysystem: InSWAP swap cache subsystem
 *
 * Source File: inswap.h
 *
 * Description:
 * InSWAP is a swap disk used a disk based cache in Tux-In-Cache.
 *
 * License: GNU General Public License (version 3)
 *
 * Copyright (C) 2009  Mohit Soni
 */
 
#ifndef _INSWAP_H_
#define _INSWAP_H_

#define INSWAP_SIZE_DEFAULT		25

typedef struct inswap_memory {
	u32		swap_total;		/* Capacity of RAM */
	u32		swap_free;		/* Amount of free RAM space */
	u32		swap_cache;		/* Amount of memory used for cache */
	
	u32		swap_pages_in;
	u32		swap_pages_out;
} inswap_memory_table;

/* Gets information about RAM */
void get_swap_info (inswap_memory *ism);

#endif